package com.yl.chainStore.entity.system

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.yl.common.annotation.NoArg
import com.yl.common.getContext
import com.yl.users.common.NeedGerId
import java.util.*

/**
 * @description :公司字典实体类
 * @author :吴枫
 * @create :2021-07-06 14:38:00
 */
@NoArg
@TableName("sys_dist_item")
class CompanyDictionary(

        /**
         * id
         */
        @TableId(value = "id", type = IdType.AUTO)
        var id: Long,



        /**
         * code
         */
        @TableField("code")
        var code: String? = UUID.randomUUID().toString(),


        /**
         * 项目名称
         */
        @TableField("group_name")
        var groupName: String,


        /**
         * 描述
         */
        @TableField("description")
        var description: String,

        /**
         * flag
         */
        @TableField("flag")
        var flag: Int? = 1,

        /**
         * 数据有效性
         */
        @TableField("enabled")
        var enabled: Int? = 1,

        /**
         * 数据字典详情
         */
        @TableField(exist = false)
        var details: List<CompanyDictionaryDetail>? = null


) : NeedGerId {
    @TableField(exist = false)
    override val idName: String = "seq_sys_dist"

}